package com.flowable.service;

import java.io.InputStream;

/**
 * 资源 接口
 */
public interface ResourceService {

    /**
     * 通过processDefinition.id和resType预览流程XML或图片资源
     *
     * @param processDefinitionId processDefinition.id
     * @param resType             取值 “image/png”或“text/xml”
     * @throws Exception
     */
    InputStream resourceRead(String processDefinitionId, String resType) throws Exception;


}
